package academico.modelo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collection;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;


@Entity
public class Turma implements Serializable {

	private static final long serialVersionUID = 1L;
	
	
	
	
	private int id;
	private String codigo;
	//private Enum<?> dias;
	private int horario;
	private Calendar diaInicio;
	
	private Collection<Aluno> Aluno = new ArrayList<Aluno>(); 
	 
	
	
	@OneToMany(mappedBy="turma")
	public Collection<Aluno> getAluno() {
		return Aluno;
	}


	public void setAluno(Collection<Aluno> aluno) {
		Aluno = aluno;
	}


	public static long getSerialversionuid() {
		return serialVersionUID;
	}


	public Turma() {
		super();
		// TODO Auto-generated constructor stub
	}


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public int getId() {
		return id;
	}


	public void setId(int id) {
		this.id = id;
	}


	public String getCodigo() {
		return codigo;
	}


	public void setCodigo(String codigo) {
		this.codigo = codigo;
	}


	public int getHorario() {
		return horario;
	}


	public void setHorario(int horario) {
		this.horario = horario;
	}


	public Calendar getDiaInicio() {
		return diaInicio;
	}


	public void setDiaInicio(Calendar diaInicio) {
		this.diaInicio = diaInicio;
	}
	
	

}
